<?php 

$channel = Channel::createChannel();

$response = array( "channel" => $channel->getId());

echo json_encode($response);

?>